<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="../Public/js/jquery.js" ></script>
<script type="text/javascript" src="../Public/js/MyDate/WdatePicker.js"></script>
<script type="text/javascript">
	$(function(){
		$("#pv_sb").click(function(){
			$("#form_pv").submit();
		});
		$("#ip_sb").click(function(){
			$("#form_ip").submit();
		});
		$("#uv_sb").click(function(){
			$("#form_uv").submit();
		});

		$("#date_sb").click(function(){
			$("#form_date").submit();
		});
	});
</script>
<style type="text/css">
body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #333; }
</style>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border: 1px solid #787878;">
  <tr align="left" valign="top" bgcolor="#f2f2f2">
    <td height="472" ><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" style="padding-bottom:20px;">
        <tr align="center" valign="top" bgcolor="#d8d8d8">
          <td><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #787878; padding:0px 10px 0px 10px;">
              <tr align="left" valign="middle">
                <td height="40" style="padding-left:5px;">数据流量&gt;<?php echo ($app_name); ?></td>
                 <td width="33%"><form action="<?php echo U('Dataflow/day_view_index',array('app_id'=>$app_id));?>" method="post" id="form_date"><table width="54%" border="0" align="center" cellpadding="0" cellspacing="0">
                
                    <tr align="left" valign="middle">
                      <td width="20%">
                     
                      <input  class="Wdate input-text"  name="startdate" type="text" id="startdate" size="14" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'<?php echo date('Y-m-d');?>'})" value="
<?php  if($_REQUEST['startdate']){ echo $_REQUEST['startdate']; }else{ echo date('Y-m-d'); } ?>
" /></td><td>至</td>
                      <td width="20%"><input  class="Wdate input-text"  name="enddate" type="text" id="enddate" size="14" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'<?php echo date('Y-m-d');?>'})" value="
<?php  if($_REQUEST['enddate']){ echo $_REQUEST['enddate']; }else{ echo date('Y-m-d'); } ?>
" /></td>
                      <td width="60%"><a href="#"><img src="../Public/images/shearch.jpg" width="60" height="23" id="date_sb"/></a></td>
                    </tr>
                  </table>
                   <input type="hidden" name="app_id" value="<?php echo ($app_id); ?>"/>
                  </form>
                  </td>
              </tr>
            </table></td>
            
        </tr>
        <tr valign="top">
          <td height="413"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr align="left" valign="middle">
                <td height="45"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                    
                  </table></td>
              </tr>
              <tr align="left" valign="top">
                <td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="45%" style="border-left:1px solid #cacaca; border-top:1px solid #cacaca;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr align="center" valign="middle">
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">日期</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">pv</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">ip</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">uv</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">小时查询</td>
                      </tr>
                     <?php if(is_array($data_list)): $i = 0; $__LIST__ = $data_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr align="center" valign="middle">
                    
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><?php echo ($vo["app_date"]); ?></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><?php echo ($vo["pv_aggregate"]); ?></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><?php echo ($vo["ip_aggregate"]); ?></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><?php echo ($vo["uv_aggregate"]); ?></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><a href="<?php echo U('Dataflow/h_view_index',array('app_id'=>$app_id,'app_date_tm'=>$vo[app_date]));?>">view</a></td>
                    
                      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                    
                  </table></td>
    
  </tr>
</table><?php echo ($page); ?>
</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>